var fs=require("fs");//引入fs模块

/*写入*/
fs.writeFile("D:\\NODE\\VueJsProject\\try.txt","Hello World",{ 'flag': 'a' },(err)=>{
    if (err){
        throw err;
    }
    console.log("Hello");
    fs.readFile("D:\\NODE\\VueJsProject\\try.txt","utf-8",(err,data)=>{
        if (err){
            throw err;
        }
        console.log(data)
    });
});


